package com.ruoyi.thgd.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.thgd.mapper.ThgdJsdImageMapper;
import com.ruoyi.thgd.domain.ThgdJsdImage;
import com.ruoyi.thgd.service.IThgdJsdImageService;

/**
 * 退化耕地- 紧实度 -图片Service业务层处理
 * 
 * @author chenhs
 * @date 2024-09-11
 */
@Service
public class ThgdJsdImageServiceImpl implements IThgdJsdImageService 
{
    @Autowired
    private ThgdJsdImageMapper thgdJsdImageMapper;

    /**
     * 查询退化耕地- 紧实度 -图片
     * 
     * @param id 退化耕地- 紧实度 -图片主键
     * @return 退化耕地- 紧实度 -图片
     */
    @Override
    public ThgdJsdImage selectThgdJsdImageById(Integer id)
    {
        return thgdJsdImageMapper.selectThgdJsdImageById(id);
    }

    /**
     * 查询退化耕地- 紧实度 -图片列表
     * 
     * @param thgdJsdImage 退化耕地- 紧实度 -图片
     * @return 退化耕地- 紧实度 -图片
     */
    @Override
    public List<ThgdJsdImage> selectThgdJsdImageList(ThgdJsdImage thgdJsdImage)
    {
        return thgdJsdImageMapper.selectThgdJsdImageList(thgdJsdImage);
    }

    /**
     * 新增退化耕地- 紧实度 -图片
     * 
     * @param thgdJsdImage 退化耕地- 紧实度 -图片
     * @return 结果
     */
    @Override
    public int insertThgdJsdImage(ThgdJsdImage thgdJsdImage)
    {
        thgdJsdImage.setCreateTime(DateUtils.getNowDate());
        return thgdJsdImageMapper.insertThgdJsdImage(thgdJsdImage);
    }

    /**
     * 修改退化耕地- 紧实度 -图片
     * 
     * @param thgdJsdImage 退化耕地- 紧实度 -图片
     * @return 结果
     */
    @Override
    public int updateThgdJsdImage(ThgdJsdImage thgdJsdImage)
    {
        thgdJsdImage.setUpdateTime(DateUtils.getNowDate());
        return thgdJsdImageMapper.updateThgdJsdImage(thgdJsdImage);
    }

    /**
     * 批量删除退化耕地- 紧实度 -图片
     * 
     * @param ids 需要删除的退化耕地- 紧实度 -图片主键
     * @return 结果
     */
    @Override
    public int deleteThgdJsdImageByIds(Integer[] ids)
    {
        return thgdJsdImageMapper.deleteThgdJsdImageByIds(ids);
    }

    /**
     * 删除退化耕地- 紧实度 -图片信息
     * 
     * @param id 退化耕地- 紧实度 -图片主键
     * @return 结果
     */
    @Override
    public int deleteThgdJsdImageById(Integer id)
    {
        return thgdJsdImageMapper.deleteThgdJsdImageById(id);
    }
}
